Hello everybody, |
Re: remove duplicates from the string |
Re: remove duplicates from the string doors36677 - Thu Feb 21 09:25:13 EST 2013 |
Re: remove duplicates from the string Yes putting in a Skip gets rid of duplicates and also sorts it alphabetically. If you want to preserve the original order, then perhaps:
Skip skpValues = createString() // KEY and DATA both 'string'
for each Entry between your delimit character do
{ if (put(skpValues, Entry, Entry)) //
then this is 1st encounter of Entry, deal with it
else this is subsequent encounter, ignore it
}
delete(skpValues)
|